package com.mentaleye.dal.dao.mybatis;

import com.mentaleye.dal.dao.ReturnVisitDao;
import com.mentaleye.dal.model.ReturnVisit;
import com.mentaleye.dal.service.ReturnVisitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by Rock on 2017/5/23.
 */
@Repository
public class ReturnVisitDaoImpl extends BaseDao implements ReturnVisitDao{

    @Autowired private ReturnVisitMapper returnVisitMapper;

    public boolean insert(ReturnVisit returnVisit){
        int result = returnVisitMapper.insertSelective(returnVisit);
        return getResultByInt(result);
    }
}
